import { PageDTO } from '@/http/public.type.ts';

export interface ArticleListVO {
  id: string;
  title: string;
  content: string;
  coverPathDesc?: string;
  viewCount: number;
  tagNames: string[];
  gmtCreate: string;
  creatorName: string;
  creatorAvatar: string;
  isNeedPassword: boolean;
}

export interface ArticleDetail {
  id: string;
  title: string;
  content: string;
  coverPathDesc?: string;
  viewCount: number;
  tagNames: string[];
  gmtCreate: string;
  creatorName: string;
  creatorAvatar: string;
  isNeedPassword?: boolean;
}

export interface TagsVO {
  id: string;
  tagName: string;
  count: number;
  randomColor: string;
}

export interface ArticlePageDTO extends PageDTO {
  tag?: string;
}
